package org.kev.transit.util;

import android.content.Intent;

/**
 * holds consent values for the transit application
 * @author kevin
 *
 */
public class TransitConst {
	
	public static final String TRANSIT_PACKAGE="org.kev.transit";
	public static final String STOP_CLASS="org.kev.transit.StopActivity";
	public static final String TIME_TABLE_CLASS="org.kev.transit.TimeTableActivity";
	public static final String SETTINGS_CLASS="org.kev.transit.SettingsActivity";
	public static final String TRANSIT_MAP_CLASS="org.kev.transit.TransitMapActivity";
	public static final String DIRECTION_CLASS="org.kev.transit.DirectionActivity";
	public static final String ROUTE_CLASS="org.kev.transit.RouteActivity";
	public static final String BROWSER_CLASS="org.kev.transit.BrowserActivity";
	
	public static final String TAG="TransitConst";
	/* PREFS consts */
	public static final String PREFS_NAME="TransitConf"	;
	public static final String ROUTE_PREF="route";	
	public static final String DIRECTION_PREF="direction";
	public static final String ROUTE_TYPE_PREF="route_type"	;
	public static final String STOP_PREF="stop"	;
	public static final String TIME_PREF="time"	;
	//public static final String URL_PREF="url"	;
	public static final String URL_PREF="http://10.1.1.2/transit"	;
	
	public static final String SYSTEM_PREF="system"	;
	public static final String LAT_PREF="lat"	;
	public static final String LONG_PREF="long"	;
	public static final String DATA_PACKAGE="org.kev.transit.data";
	//Intents
	public static Intent STOP_INTENT= null;
	public static Intent TIME_TABLE_INTENT= null;
	public static Intent SETTINGS_INTENT= null;
	public static Intent TRANSIT_MAP_INTENT= null;
	public static Intent DIRECTION_INTENT= null;
	public static Intent ROUTE_INTENT= null;
	public static Intent BROWSER_INTENT= null;
	
	
	/*           */
	public static final String DATA_FILE="tranist.CSV"	;
	
	/*           */
	public static final String DATA_BASE="transit.db"	;
	


	/**
	 * Intent to call the transit stop activity
	 * @return intent
	 */
	static{
		
		Intent i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,STOP_CLASS);
		STOP_INTENT=i;
	
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,ROUTE_CLASS);
		ROUTE_INTENT=i;
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,DIRECTION_CLASS);
		DIRECTION_INTENT=i;
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,TIME_TABLE_CLASS);
		TIME_TABLE_INTENT=i;
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,SETTINGS_CLASS);
		SETTINGS_INTENT=i;
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,BROWSER_CLASS);
		BROWSER_INTENT=i;
		i = new Intent();
		i.setClassName(TRANSIT_PACKAGE,TRANSIT_MAP_CLASS);
		TRANSIT_MAP_INTENT=i;		
	}
}
